package jgl.vajra.kingkong.part.vehicle.contract;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.kingkong.bean.NearbyPointsBean;
import jgl.vajra.kingkong.databinding.ActivityWorkingFieldBinding;
import jgl.vajra.kingkong.widget.mvvm.model.BaseModel;
import jgl.vajra.kingkong.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.kingkong.widget.mvvm.viewmodel.BaseViewModel;

public class WorkingFieldContract {
    public abstract static class Model extends BaseModel {

        public abstract Observable<List<NearbyPointsBean>> getNearbyPoints(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onReposition();

        void onMailList();

        void onModifyAddress();

        void onCommonAddress();

        void onDetermine();

        void returnNearbyPointsData(List<NearbyPointsBean> data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityWorkingFieldBinding, Model> {

        public abstract void getNearbyPoints(Map<String, Object> map);
    }
}
